package com.changpei.common.exception.custom;

import com.changpei.common.result.enums.CommonCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 自定义异常
 *
 * @author Way on 2021/7/2
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
public class CustomException extends Exception {

    private CommonCode commonCode;

    public CustomException() {
        setCommonCode(CommonCode.SERVER_INTERNAL_ERROR);
    }
}
